emida-ux
Usage Consumption
/queryUsageConsumption
[POST]
This usecase to retrieve usage associated with msisdn number.
URL
https://[host]:[port]/emida-ux/v1/{businessId}/queryUsageConsumptionURI Params
| name | type | description | required |
|---|---|---|---|
| businessId | string | Default CR for Costa Rica | Y |
Headers
| name | type | description | required |
|---|---|---|---|
| client_id | string | The client_id identifying the channel. Minimum characters: 5 | Y |
| client_secret | string | Password associated with the client_id. Minimum characters: 5 | Y |
| X-Correlation-ID | string | Identifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction. | Y |
cURL request
curl --location 'https://nonprod.lcr.esb.cloud.lla.com/test/emida-ux-lcr/emida-ux/v1/CR/queryUsageConsumption' \
--header 'X-Correlation-ID: {{$guid}}' \
--header 'client_secret: ******' \
--header 'client_id: ******' \
--header 'Content-Type: application/json' \
--data-raw '{
"searchCriteria":{
"logicalResource":[
{
"id":"12345678",
"@type":"LogicalResource"
}
]
},
"@type": "usageConsumption"
}'Response
{
"@type": "QueryUsageConsumption",
"partyAccount": [
{
"id": "384087",
"@baseType": "PartyAccount",
"@referredType": "BillingAccount"
}
],
"relatedParty": [
{
"id": "392603",
"role": "Customer",
"@referredType": "Individual"
}
],
"usageConsumption": [
{
"logicalResource": [
{
"id": "12345678",
"@type": "LogicalResource"
}
],
"service": [
{
"id": "23345",
"@type": "Service"
}
],
"bucketRefOrValue": [
{
"id": "DCET",
"usageType": "DATOS",
"bucketCounter": [
{
"counterType": "used",
"value": {
"amount": 0,
"units": "KB"
}
}
],
"remainingValue": {
"amount": 10.48,
"units": "GB"
},
"validPeriod": {
"startDateTime": "2022-12-06T13:56:48.000-06:00",
"endDateTime": "2032-12-06T13:56:48.000-06:00"
},
"bucketRelationship": [
{
"relationshipType": "Aggregated",
"bucketRefOrValue": {
"id": "BDATCET"
}
}
]
}
],
"product": [
{
"id": "CA",
"name": "PLAN CONTROL @5 LTE PRO CT"
}
]
}
]
}